<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{/public :: #public_head}"></head>
<body>
<div class="container">
    <div th:replace="~{/public :: #public_header}"></div>
    <div th:replace="~{/public :: #public_time}"></div>
    <div class="main">
        <div th:replace="~{/public :: #public_left(activeUri='chat')}"></div>
        <div class="right">
            <table class="table-list">
                <tr class="tr-first">
                    <th>用户</th>
                    <th>好友</th>
                    <th>内容</th>
                    <th>类型</th>
                    <th>时间</th>
                    <th>是否有效</th>
                </tr>
                <tr th:each="chatLog:${chats}" class="tr-list">
                    <td th:text="${chatLog.username}"></td>
                    <td th:text="${chatLog.friend}"></td>
                    <td th:text="${chatLog.content}"></td>
                    <td th:text="${chatLog.type}"></td>
                    <td th:text="${chatLog.logTime}"></td>
                    <td th:text="${chatLog.isActive == true ? '是' : '否'}">是</td>

                </tr>
            </table>
        </div>
    </div>
    <div th:replace="~{/public :: #public_footer}"></div>
</div>
</body>
</html>